//
//  UIApplation+Editing.swift
//  NyamanDana
//
//  Created by 李永彬 on 2025/10/24.
//

import UIKit

extension UIApplication {
    func endEditing() {
        sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    }
    
   func openAppSettings() {
        if let url = URL(string: UIApplication.openSettingsURLString) {
            if canOpenURL(url) {
                open(url, options: [:], completionHandler: nil)
            }
        }
    }
}
